package kit
{
	import flash.filters.ColorMatrixFilter;
	import flash.filters.DropShadowFilter;
	import flash.filters.GlowFilter;
	import flash.geom.ColorTransform;

	public class FilterKit
	{
		/** 颜色类型常量 */
		public static const WHITE:int=0xffffff,// 普通
			GREEN:int=0x00ff12,// 绿色
			BLUE:int=0x0078ff,// 蓝色
			PURPLE:int=0x8f4bff,// 紫色
			YELLOW:int=0xffb400,// 黄色
			GRAY:int=0x888888,//灰色
			CYAN:int=0x57fffd,//青色
			ORANGE:int=0xfaab02
		
		public static function getColorStr(str:String,color:String="ffffff"):String
		{
			return "<font color='#"+color+"'>"+str+"</font>"
		}
		public static const gray:ColorMatrixFilter=new ColorMatrixFilter([0.3086,0.6094,0.0820,0,0,
			0.3086,0.6094,0.0820,0,0,
			0.3086,0.6094,0.0820,0,0,
			0,0,0,1,0]);
		public static const blackCM:ColorMatrixFilter=new ColorMatrixFilter([.3,0,0,0,0,
			0,.3,0,0,0,
			0,0,.3,0,0,
			0,0,0,1,0]);
		public static const yellowCT:ColorTransform=new ColorTransform(1,1,1,1,200,200,0,0);
		/**
		 *日常任务 
		 */		
		public static const textGlowGF:GlowFilter=new GlowFilter();
		/**
		 * 黑色秒便
		 */
		public static const textRigeGF:GlowFilter=new GlowFilter(0x0a0a0a,1,4,4,5,1);
		/**
		 *格子发光 
		 */		
		public static const gridGlowGF:GlowFilter=new GlowFilter(0xffff11,1,8,8,2,1,true)
		public function FilterKit()
		{
		}
	}
}